<!--#
	var article = platform.findArticleById(numberUtil.toLong(parameter.id));
	article = platform.addArticleHot(article.id);
	var catalog = platform.findCatalogById(article.catalogId);
-->
<!--#layout("common/page.html",{"jsBase":"/js/","title":catalog.name + ' ' + article.title,"article":article}){  -->
<blockquote class="layui-elem-quote">发布信息</blockquote>
<form class="layui-form" action="" onsubmit="return false" lay-filter="articleForm" id="articleForm">

    <div class="layui-form-item">
        <label class="layui-form-label">文章标题</label>
        <div class="layui-input-block">
            <input type="text" name="title" lay-verify="required" lay-reqText="标题不能为空" value="${article.title!}" placeholder="请输入文章标题" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">发布时间</label>
        <div class="layui-input-block">
            <input type="text" id="showTime" name="showTime"  value='${article.showTime!,"yyyy-MM-dd"}'   class="layui-input input-date" />
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">所在地区</label>
        <layui:areaSelect id="area" size="5" style="layui-input-block" selected='[${article.province!},${article.city!}]' verifys="[]" reqtext="['省份必须选择']"></layui:areaSelect>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">文章内容</label>
        <div class="layui-input-block">
            <textarea name="content" placeholder="请输入内容" class="layui-textarea kindEditor">${article.content!}</textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <input type="hidden" name="id" value="${article.id!}" lay-filter="articleForm" />
            <button class="layui-btn" lay-submit lay-filter="regSubmit" id="regSubmit">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
<script>
	layui.extend({
		article : '{/}${tpl}/layuiExts/member/article'
	}).use(['article'],function() {

	});
</script>
<!--#}  -->
